package com.chen.service.serviceimpl;

import com.chen.dao.AbsenceDao;
import com.chen.pojo.Absence;
import com.chen.service.AbsenceService;
import jdk.nashorn.internal.ir.IfNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class AbsenceServiceImpl implements AbsenceService{
    @Autowired
    AbsenceDao absenceDao;

    @Override
    public List<Absence> getAbsenceByCreateDate(Absence absence) {
        return absenceDao.getAbsenceByCreateDate(absence);
    }

    @Override
    public void deleteAbsenceById(int id) {
        absenceDao.deleteAbsenceById(id);
    }
}
